package com.neu.mapper;

import com.neu.pojo.Material;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MaterialMapper {

    List<Material> queryMaterialList(@Param("pid") int pid, @Param("type") int type);

    int insertMaterial(Material material);

    int deleteMaterial(int id);

    int deleteMaterialGroup(@Param("pid") int pid, @Param("type") int type);

    int updateMaterial(Material material);

}
